/* 
Made by request 1/28/12 

This script is called in the init.sqf right before the infotext

Marks a town on the map and fills them with raiders.

Yes, it's very cute.

Why am I writing this? Do I need a reason?

Your right, I don't. Have fun trying to get these to work, and if you do please tell me because I will give you a high five


I'll also extra comment this for you


//Se the townlist variable to _towns, just for aesthetics



private ["_towns","_townnumber","_town","_townpos","_group","_raider","_man","_marker"];
_towns= townlist;
//Count the number of towns and pick a random one
_townnumber = random floor (count _towns);
//select that random one
_town = _towns select _townnumber;
//Find the towns position
_townpos = getpos _town;
//Spawn the raiders//

//create a group
_group = createGroup resistance;

_raider = ["Ins_Commander", "Ins_Soldier_1", "Ins_Soldier_AR", "Ins_Soldier_CO",
"Ins_Soldier_MG", "Ins_Soldier_Medic", "Ins_Soldier_Sniper",
"Ins_Villager3", "Ins_Villager4", "Ins_Worker2",
"Ins_Woodlander1", "Ins_Woodlander2", "Ins_Woodlander3"] call BIS_fnc_selectRandom;


//create a soldier at that group
_man = _group createunit ["_raider",position _town, [], 0, "Form"];
_man = _group createunit ["_raider",position _town, [], 0, "Form"];
_man = _group createunit ["_raider",position _town, [], 0, "Form"];
_man = _group createunit ["_raider",position _town, [], 0, "Form"];
_man = _group createunit ["_raider",position _town, [], 0, "Form"];
_man = _group createunit ["_raider",position _town, [], 0, "Form"];

//Create a bunch of soldiers...

//Tell them to defend
[_group,position _town] call BIS_fnc_taskDefend;
//Finally put a marker on the town
_marker = createMarker ["Raiders",position _town];
_marker setMarkerType "mil_destroy";
_marker setMarkerColor "ColorRed";
_marker setMarkerText "Survivors";
_marker setMarkerSize [1,1];
//And that's it. They will defend the town, tell me if it works...




*/


